IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[spDrivers_GetAllDrivers]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[spDriver_GetAllDrivers]
GO

GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Eric Liew
-- Create date: 6/2/2009
-- Description:	Get all drivers
-- =============================================
CREATE PROCEDURE [dbo].[spDriver_GetAllDrivers]
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	SELECT 
		DriverId,
		Title,
		FirstName,
		LastName,
		Street1,
		Street2,
		Suburb,
		[State],
		Postcode,
		Phone,
		Mobile1,
		Mobile2,
		Licience,
		DriverLicienceExpiry,
		TaxiLicience,
		ABN,
		DateOfBirth,
		CommencementDate,
		Nickname,
		TaxiLicienceExpiry,
		ETagNumber,
		ETagAccount,
		Active,
		Gender
	FROM Driver
	Where Active = 1
 

END
GO
